﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RSSReader.classesCustom
{    
    [Serializable]
    public class Article
    {
        private Int32 _ID;
        private Int32 _siteID;
        private String  _logo;
        private String _category;
        private String _title;
        private DateTime _pubdate;
        private String _description;
        private String _fullarticle;
        private String _weblink;

        public int ID
        {
            get
            { return _ID; }
            set
            { _ID = value; }
        }
        public int siteID
        {
            get
            { return _siteID; }
            set         
            { _siteID = value; }
        }
        public String logo
        {
            get
            { return _logo; }
            set
            { _logo = value; }
        }
        public String category
        {
            get
            { return _category; }
            set
            { _category = value; }
        }
        public String title
        {
            get
            { return _title; }
            set
            { _title = value; }
        }
        public DateTime pubdate
        {
            get
            { return _pubdate; }
            set
            { _pubdate = value; }
        }
        public String description
        {
            get
            { return _description; }
            set
            { _description = value; }
        }
        public String fullArticle
        {
            get
            { return _fullarticle; }
            set
            { _fullarticle = value; }
        }
        public String weblink
        {
            get
            { return _weblink; }
            set
            { _weblink = value; }
        }
    }
    
    /// <summary>
    /// class for objects needed to help data transfer between client and server side  
    /// </summary>
    public class ArticleCriteriaInString
    {
        public ArticleCriteriaInString() : this("1", "10", "", "", "", "") { }

        public ArticleCriteriaInString(string pageNumber, string pageSize, string category, string title, string description, string date)
        {
            // TODO: Complete member initialization
            this.pageNumber = pageNumber;
            this.pageSize = pageSize;
            this.category = category;
            this.title = title;
            this.description = description;
            this.date = date;
        }

        public string pageNumber { get; set; }
        public string pageSize { get; set; }
        public string title { get; set; }
        public string category { get; set; }
        public string description { get; set; }
        public string date { get; set; }
    }  
}